package priv.mill;

import static org.junit.Assert.*;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.List;

import org.junit.Test;

public class ProxyDemo {

	
	
	
	@Test
	public void one() throws Exception {
//		Class<?>[] interfaces = {List.class};
//		InvocationHandler h = new InvocationHandler() {
//			@Override
//			public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
//				method.getAnnotation(annotationClass)
//				System.out.println("不管你掉什么方法，我就是这一套");
//				return null;
//			}
//		};
//		List list = (List) Proxy.newProxyInstance(ProxyDemo.class.getClassLoader(), interfaces, h);
//		System.out.println(list instanceof List);
	}
	

}
